# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=netscan
pkgver=1.0
pkgrel=2
groups=('blackarch' 'blackarch-scanner' 'blackarch-networking')
pkgdesc='Tcp/Udp/Tor port scanner with: synpacket, connect TCP/UDP and socks5 (tor connection).'
arch=('x86_64' 'aarch64')
url='http://packetstormsecurity.com/files/125569/Netscan-Port-Scanner-1.0.html'
license=('custom:unknown')
source=('https://dl.packetstormsecurity.net/UNIX/scanners/netscan.c')
sha512sums=('be81766f7c0d561b7f520df6a2e7998730ea873c8ce1099fee0a6acf0b68cbbdfb9bc716f5e7397c13570d40a95a71f976e20be75066ecd3321c95b3a6bb09cc')

build() {
  gcc -lpthread "$pkgname.c" -o $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

